package com.rlj.messagequeue;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class MessageQueueApplication {

    // 保存一个静态的 context 变量，方便 没有注入spring容器的类 注入容器中已注入的类
    public static ConfigurableApplicationContext context;

    public static void main(String[] args) {
        context = SpringApplication.run(MessageQueueApplication.class, args);
    }

}
